package cn.lg.soar.system.biz.modules.auth.service;

import cn.lg.soar.core.model.DataScopeInfo;
import cn.lg.soar.database.base.service.IBaseService;
import cn.lg.soar.system.biz.modules.auth.entity.Resource;

import java.util.Collection;
import java.util.List;

/**
 * Resource服务层接口
 * 数据源
 * @author luguoxiang
 * @since 2022-04-30
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public interface IResourceService extends IBaseService<Resource> {

    Resource getByCode(String code);

    List<String> codesByIds(Collection<Long> ids);

    void removeCacheByResourceId(Collection<Long> resourceIds);

    void scanDataScopeGenPermit(Collection<DataScopeInfo> values);

    void clearCache();

}
